<!doctype html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <block name="title"><title>{$meta_title}｜{:C('WEB_SITE_TITLE')}－{:C('WEB_SITE_SLOGAN')}</title></block>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta name="author" content="{:C('WEB_SITE_TITLE')}">
    <meta name="keywords" content="{$meta_keywords}">
    <meta name="description" content="{$meta_description}">
    <meta name="generator" content="零云">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-title" content="{:C('WEB_SITE_TITLE')}">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no,email=no">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge">
    <link rel="shortcut icon" type="image/x-icon" href="__ROOT__/favicon.ico">
    <link rel="apple-touch-icon" type="image/x-icon" href="__ROOT__/logo.png">
    <link rel="stylesheet" type="text/css" href="__LYUI__/css/lyui.min.css">
    <link rel="stylesheet" type="text/css" href="__HOME_CSS__/home.css">
    <style type="text/css">
        body {
            background: #f7f7f7;
        }
        #main {
            padding-bottom: 0px;
        }
        @media (min-width: 1200px) {
            .container {
                width: 1000px;
            }
        }
        .main-navgit {
            border-top: 0;
        }
        @media (min-width: 768px) {
            .main-navgit {
                background-color: rgba(255,255,255,0.9);
            }
            .main-navgit .navbar-nav>li>a:hover,
            .main-navgit .navbar-nav>li>a:focus {
                color: #222222;
                background-color: #DBDBDB;
            }
        }
        .footer-link {
            padding-bottom: 5px;
        }
        .footer-link li,
        .footer-link li a {
            font-size: 13px;
            color: #666;
        }
            }
    </style>
    <block name="style"></block>
    <!--[if lt IE 9]>
        <script src="//cdn.bootcss.com/html5shiv/r29/html5.min.js"></script>
        <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/javascript" src="//cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <script type="text/javascript">
        window.jQuery || document.write('<script type="text/javascript" src="__PUBLIC__/libs/jquery/1.x/jquery.min.js"><\/script>');
        window.lingyun = {
            "app_debug"     : "<?php echo APP_DEBUG; ?>",
            "app_debug_msg" : "调试模式已关闭",
            "top_home_page" : "{:C('TOP_HOME_PAGE')}",
            "home_page"     : "{:C('HOME_PAGE')}",
            "var_root "     : "__ROOT__",
            "default_img"   : "{:get_cover('', 'default')}"
        }
    </script>
</head>
<body class="{$_page_name}">
    <block name="full_wrap">
        <block name="hook_page_header">
            <div class="clearfix hook hook-page-header">
                {:hook('PageHeader')} <!-- 文档开始钩子 -->
            </div>
        </block>

        <block name="wrap">
            <div class="clearfix full-wrap">
                <div class="clearfix full-header">
                    <block name="header">
                        <block name="top-nav">
                            <nav class="navbar navbar-default navbar-mini top-nav hidden-xs hidden-sm" role="navigation">
                                <div class="container">
                                    <div class="collapse navbar-collapse">
                                        <ul class="nav navbar-nav" style="margin-left:-15px">
                                            <li>
                                                <a target="_blank" href="#">
                                                    <span>您好，</span>
                                                    <span>欢迎来到 {:C('WEB_SITE_TITLE')}，{:C('WEB_SITE_SLOGAN')}！</span>
                                                </a>
                                            </li>
                                        </ul>
                                        <ul class="nav navbar-nav navbar-right">
                                            <!-- 用户相关-->
                                            <present name="_user_auth">
                                                <li>
                                                    <a href="{:U('User/Message/index', '', true, true)}">
                                                        <span class="fa fa-envelope-o"></span> 消息
                                                        (<span>{$_new_message|default=0}</span>) <!-- 新消息数量 -->
                                                    </a>
                                                </li>
                                                <li class="dropdown">
                                                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                                        <img class="nav-img img-circle" src="{$_user_auth.avatar|get_cover='avatar'}" alt="{$_user_auth.nickname}">
                                                        <span>{$_user_auth.nickname}</span>
                                                        <span class="fa fa-angle-down"></span>
                                                    </a>
                                                    <ul class="dropdown-menu">
                                                        <li><a href="{:U('User/Index/index', '', true, true)}" class=""><i class="fa fa-tachometer" style="width: 16px;text-align: center;"></i> 个人中心</a></li>
                                                        <?php if($_user_nav_main): ?>
                                                            <li role="separator" class="divider"></li>
                                                        <?php endif; ?>
                                                        <volist name="_user_nav_main" id="vo_nav">
                                                            <li><a href="{:U($vo_nav['url'], '', true, true)}" class="{$vo_nav.class}"><i class="{$vo_nav.icon}" style="width: 16px;text-align: center;"></i> {$vo_nav.title}</a></li>
                                                        </volist>
                                                        <li role="separator" class="divider"></li>
                                                        <li><a href="{:U('User/User/logout', '', true, true)}" class="ajax-get"><i class="fa fa-sign-out" style="width: 16px;text-align: center;"></i> 注销登录</a></li>
                                                    </ul>
                                                </li>
                                            <else />
                                                <li><a data-toggle="modal" href="#login-modal"><i class="fa fa-sign-in"></i> <span>登录/注册</span></a></li>
                                            </present>
                                        </ul>
                                    </div>
                                </div>
                            </nav>
                        </block>

                        <block name="main-nav">
                            <nav class="navbar navbar-default main-navgit m-a-0" role="navigation">
                                <div class="container">
                                    <div class="navbar-header">
                                        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-main">
                                            <span class="sr-only">切换导航</span>
                                            <span class="icon-bar"></span>
                                            <span class="icon-bar"></span>
                                            <span class="icon-bar"></span>
                                        </button>
                                        <?php
                                            if(MODULE_NAME === 'Home' || (C('APP_SUB_DOMAIN_DEPLOY') && in_array(MODULE_NAME, C('APP_SUB_DOMAIN_RULES')))) {
                                                $home_page = C('HOME_PAGE');
                                            } else {
                                                $home_page = U('/'.MODULE_NAME);
                                            }
                                        ?>
                                        <php>if(C('WEB_SITE_LOGO')):</php>
                                            <a class="navbar-brand" href="{$home_page}">
                                                <img alt="logo" src="<?php echo get_cover(C('WEB_SITE_LOGO')); ?>" style="display: inline-block">
                                                <!-- 模块子logo -->
                                                <?php if($_current_module): ?>
                                                    <span style="color: #2699ed;font-size: 16px;margin-left: -3px;">
                                                        <?php echo $_current_module; ?>
                                                    </span>
                                                <?php endif; ?>
                                            </a>
                                        <php>else:</php>
                                            <a class="navbar-brand" href="{$home_page}">
                                                <span>{:C('LOGO_DEFAULT')}</span>
                                                <!-- 模块子logo -->
                                                <?php if($_current_module): ?>
                                                    <span style="color: #2699ed;font-size: 16px;margin-left: -3px;">
                                                        <?php echo $_current_module; ?>
                                                    </span>
                                                <?php endif; ?>
                                            </a>
                                        <php>endif;</php>
                                    </div>
                                    <div class="collapse navbar-collapse navbar-collapse-main">
                                        <ul class="nav navbar-nav navbar-left">
                                            <?php if(MODULE_NAME === 'Home' || (C('APP_SUB_DOMAIN_DEPLOY') && in_array(MODULE_NAME, C('APP_SUB_DOMAIN_RULES')))): ?>
                                                <li><a href="{:C('HOME_PAGE')}">首页</a></li>
                                            <?php else: ?>
                                                <li><a href="{:U('/'.MODULE_NAME)}">首页</a></li>
                                            <?php endif; ?>
                                            <!-- 主导航 开始 -->
                                            <lingyun:nav_list name="vo" pid="0" group="main">
                                                <php>if($vo['_child']):</php>
                                                    <li class="dropdown">
                                                        <a href="{$vo.href}" class="dropdown-toggle" data-toggle="dropdown" role="button">
                                                            <span>{$vo.title}</span>
                                                            <span class="fa fa-angle-down"></span>
                                                        </a>
                                                        <ul class="dropdown-menu">
                                                            <volist name="vo._child" id="vo1">
                                                                <li>
                                                                    <a target="{$vo1.target}" href="{$vo1.href}">{$vo1.title}</a>
                                                                </li>
                                                            </volist>
                                                        </ul>
                                                    </li>
                                                <php>else:</php>
                                                    <li>
                                                        <a target="{$vo.target}" href="{$vo.href}">
                                                            <span> {$vo.title}</span>
                                                        </a>
                                                    </li>
                                                <php>endif;</php>
                                            </lingyun:nav_list>
                                            <!-- 主导航 结束 -->
                                        </ul>
                                        <form class="navbar-form navbar-right" action="{:U('Git/Index/lists')}" role="search">
                                            <div class="form-group">
                                                <input type="text" class="form-control search-input" placeholder="搜索项目" name="keyword" value="{$_GET['keyword']}" style="border-radius: 20px">
                                                <button class="navbar-btn search-btn btn btn-default hidden">搜索</button>
                                            </div>
                                        </form>
                                    </div>
                                </div>
                            </nav>
                        </block>
                    </block>
                </div>

                <div class="clearfix full-container">
                    <block name="jumbotron">
                        <!--
                            <div class="jumbotron text-center  m-b" style="color: #fff;height: 200px;background-size: 100%;background-repeat:no-repeat;background-image: url(__HOME_IMG__/default/banner.jpg)">
                                <p class="m-a-0 m-t-md">{$meta_title}</p>
                            </div>
                        -->
                    </block>

                    <block name="breadcrumb">
                        <!-- 子域名部署支持 -->
                        <?php if($_current_module && $_current_module !== $meta_title): ?>   <!-- 如果是模块首页则不显示面包屑导航 -->
                            <div class="container m-t">
                                <ol class="breadcrumb m-a-0">
                                    <?php if(C('APP_SUB_DOMAIN_DEPLOY') && in_array(MODULE_NAME, C('APP_SUB_DOMAIN_RULES'))): ?>
                                        <li><a href="{:C('HOME_PAGE')}">首页</a></li>
                                        <li class="active">{$meta_title}</li>
                                    <?php else: ?>
                                        <li><a href="{:C('TOP_HOME_PAGE')}">首页</a></li>
                                        <li><a href="{:U('/'.MODULE_NAME)}"><?php echo $_current_module; ?></a></li>
                                        <li class="active">{$meta_title}</li>
                                    <?php endif; ?>
                                </ol>
                            </div>
                        <?php endif; ?>
                    </block>

                    <div id="main" class="main">
                        <block name="main">这里是内容</block>
                    </div>
                </div>

                <div class="clearfix full-foooter">
                    <block name="footer">
                        <div class="">
                            <div class="container">
                                <ul class="list-inline pull-left">
                                    <li><a class="icp" href="http://www.miibeian.gov.cn/" target="_blank">{:C('WEB_SITE_ICP')}</a></li>
                                    <li><span class="copyright">{:C('WEB_SITE_COPYRIGHT')}</span></li>
                                </ul>
                                <ul class="list-inline pull-right footer-link hidden-xs">
                                    <li><a href="mailto:service@corethink.cn" target="_blank"><i class="fa fa-envelope-o" style="color: #fff;"></i> 联系我们</a></li>
                                    <li><span>当前版本：{:C('CURRENT_VERSION')}</span></li>
                                </ul>
                            </div>
                        </div>
                    </block>
                </div>
            </div>
        </block>

        <block name="hook_page_footer">
            <div class="clearfix hook hook-page-footer">
                {:hook('PageFooter')} <!-- 文档末尾钩子 -->
            </div>
        </block>
    </block>

    <block name="full_script">
        <div class="clearfix full-script">
            <div class="container-fluid">
                <include file="$_home_public_modal" /> <!-- 弹窗 -->
                <script type="text/javascript" src="__LYUI__/js/lyui.min.js"></script>
                <script type="text/javascript" src="__HOME_JS__/home.js"></script>
                <block name="script"></block>
                {:C('WEB_SITE_STATISTICS')} <!-- 站点统计代码 -->
            </div>
        </div>
    </block>
</body>
</html>
